package com.da.goal.convert;

import com.da.goal.entity.DailyGoals;
import com.da.goal.entity.dto.DailyGoalsDTO;
import com.da.goal.entity.vo.DailyGoalsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-02-12
 * @Version: 1.0
 */
@Mapper
public interface GoalConverter {
    GoalConverter INSTANCE = Mappers.getMapper(GoalConverter.class);

    /**
     * dto转实体
     * @param dailyGoalsDTO 目标dto类
     * @return
     */
    DailyGoals dtoToEntity(DailyGoalsDTO dailyGoalsDTO);


    /**
     * 实体转vo
     * @param dailyGoals 目标实体类
     * @return
     */
    DailyGoalsVO entityToVO(DailyGoals dailyGoals);
}
